import * as React from 'react';
import styles from './fofButton.less';
import cn from 'classnames';
import icon_fof from '@/assets/icons/icon-fof.png';

interface FofButtonProps {
  src?: string;
  text: string;
  onClick?: () => void;
  className?: any;
  style?:React.CSSProperties
}
const FofButton = (props: FofButtonProps) => {
  const { src, text, onClick, className, style } = props;
  return (
    <div style={style} onClick={onClick} className={cn(styles.btn, className)}>
      <img src={src || icon_fof} alt="icon" />
      <span>{text}</span>
    </div>
  );
};

export default FofButton;
